/* 仓库文件 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        TypeMessage: {}, //推送数据 倒计时，开奖信息
        Forecast: {}, //推送数据 列表数据
        Table: {}, //首页 高频彩 热门彩
        indexToColdVar: false,
        lotteryType:'',//彩种类型
        articleID:17,
        text:''
    },
    mutations: {
        indexToColdHotTrue(state) {
            state.indexToColdVar = true;
        },
        indexToColdHotFalse(state) {
            state.indexToColdVar = false;
        },
        //获取彩种类型
        getLotteryType(state,data){
            state.lotteryType = data;   
        },
        //获取不同彩种帮助中心文章ID
        getLotteryTypeArticleID(state,data){
            state.articleID = data;
        },
        getTabsText(state,data){
            state.text = data;
        }
    }
})

export default store;